package com.ws.lv.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan("com.ws.lv.service")//扫描service包
@PropertySource("classpath:jdbc.properties")//获取配置文件
@Import({JdbcConfig.class,MybatisConfig.class})
@EnableTransactionManagement //开启 Spring 事务管理
public class SpringConfig {
}
